Optimal. Leaf size=75 \[ \frac{\tan (e+f x) \left (a+b (c \tan (e+f x))^n\right )^p \left (\frac{b (c \tan (e+f x))^n}{a}+1\right )^{-p} \text{Hypergeometric2F1}\left (\frac{1}{n},-p,\frac{1}{n}+1,-\frac{b (c \tan (e+f x))^n}{a}\right )}{f} \]
[Out]
________________________________________________________________________________________
Rubi [A] time = 0.0769877, antiderivative size = 75, normalized size of antiderivative = 1., number of steps used = 3, number of rules used = 3, integrand size = 25, \(\frac{\text{number of rules}}{\text{integrand size}}\) = 0.12, Rules used = {3675, 246, 245} \[ \frac{\tan (e+f x) \left (a+b (c \tan (e+f x))^n\right )^p \left (\frac{b (c \tan (e+f x))^n}{a}+1\right )^{-p} \, _2F_1\left (\frac{1}{n},-p;1+\frac{1}{n};-\frac{b (c \tan (e+f x))^n}{a}\right )}{f} \]
Antiderivative was successfully verified.
[In]
[Out]
Rule 3675
Rule 246
Rule 245
Rubi steps
\begin{align*} \int \sec ^2(e+f x) \left (a+b (c \tan (e+f x))^n\right )^p \, dx &=\frac{\operatorname{Subst}\left (\int \left (a+b x^n\right )^p \, dx,x,c \tan (e+f x)\right )}{c f}\\ &=\frac{\left (\left (a+b (c \tan (e+f x))^n\right )^p \left (1+\frac{b (c \tan (e+f x))^n}{a}\right )^{-p}\right ) \operatorname{Subst}\left (\int \left (1+\frac{b x^n}{a}\right )^p \, dx,x,c \tan (e+f x)\right )}{c f}\\ &=\frac{\, _2F_1\left (\frac{1}{n},-p;1+\frac{1}{n};-\frac{b (c \tan (e+f x))^n}{a}\right ) \tan (e+f x) \left (a+b (c \tan (e+f x))^n\right )^p \left (1+\frac{b (c \tan (e+f x))^n}{a}\right )^{-p}}{f}\\ \end{align*}
Mathematica [A] time = 0.109588, size = 75, normalized size = 1. \[ \frac{\tan (e+f x) \left (a+b (c \tan (e+f x))^n\right )^p \left (\frac{b (c \tan (e+f x))^n}{a}+1\right )^{-p} \text{Hypergeometric2F1}\left (\frac{1}{n},-p,\frac{1}{n}+1,-\frac{b (c \tan (e+f x))^n}{a}\right )}{f} \]
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
Maple [F] time = 0.333, size = 0, normalized size = 0. \begin{align*} \int \left ( \sec \left ( fx+e \right ) \right ) ^{2} \left ( a+b \left ( c\tan \left ( fx+e \right ) \right ) ^{n} \right ) ^{p}\, dx \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Maxima [F] time = 0., size = 0, normalized size = 0. \begin{align*} \int{\left (\left (c \tan \left (f x + e\right )\right )^{n} b + a\right )}^{p} \sec \left (f x + e\right )^{2}\,{d x} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Fricas [F] time = 0., size = 0, normalized size = 0. \begin{align*}{\rm integral}\left ({\left (\left (c \tan \left (f x + e\right )\right )^{n} b + a\right )}^{p} \sec \left (f x + e\right )^{2}, x\right ) \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Sympy [F(-1)] time = 0., size = 0, normalized size = 0. \begin{align*} \text{Timed out} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Giac [F] time = 0., size = 0, normalized size = 0. \begin{align*} \int{\left (\left (c \tan \left (f x + e\right )\right )^{n} b + a\right )}^{p} \sec \left (f x + e\right )^{2}\,{d x} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]